package com.yxw.yx_hotel.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="UserCenterInfoUpdateDTO", description="个人中心修改信息dto")
public class UserCenterInfoUpdateDTO implements Serializable {

    @ApiModelProperty(value = "当前登录人userId",required = true)
    @NotNull(message = "当前登录人userId不能为空！")
    private Long loginUserId;

    @ApiModelProperty(value = "当前用户userId", required = true)
    @NotNull(message = "当前用户userId不能为空！")
    private Long userId;

    @ApiModelProperty(value="手机号")
    private String mobilePhone;

    @ApiModelProperty(value="头像路径")
    private String headUrl;

    @ApiModelProperty(value="新密码")
    private String password;

    @ApiModelProperty(value="确认密码")
    private String confirmPassword;

}
